var getPOI =function(where, around){

	$.ajaxSetup({
		  "error":function() {} //alert("Couldn't retrieve POI's");  }
	});


	$.getJSON("geosearchProxy.php?where="+where+"&around="+around, function(data){
		//alert(data.features[0].properties.name);
		if(where.indexOf("pub")>=0) pub_ = data.features[0];//data.features[0].properties.name;
		if(where.indexOf("restaurant")>=0) restaurant_ = data.features[0];
		if(where.indexOf("cafe")>=0) cafe_ = data.features[0];
		if(where.indexOf("station")>=0) trainStation_ = data.features[0];
		
		counter++;
		startStory();
	});
}
